package org.vdab.projects.tasks.client;

import java.util.List;

import org.vdab.projects.tasks.shared.entities.impl.Task;
import org.vdab.projects.tasks.shared.entities.impl.TaskBook;
import org.vdab.projects.tasks.shared.entities.impl.TaskList;

import com.google.gwt.user.client.rpc.AsyncCallback;

/**
 * The async counterpart of <code>GreetingService</code>.
 */
public interface TasksServiceAsync {
	
	void getTaskBook(AsyncCallback<List<TaskBook>> callback);

	void saveTaskBook(TaskBook tb, AsyncCallback<Void> callback);

	void saveTaskList(TaskList tl, AsyncCallback<Void> callback);

	void saveTask(Task task, AsyncCallback<Void> callback);

	void getTaskListByKey(String key, AsyncCallback<TaskList> callback);
}
